/**
 * 
 */
package com.example.ourapps.repo;

import java.util.List;

import com.example.ourapps.domain.AppDetail;

/**
 * @author richapahwa
 *
 */
public interface AppDetailDao {

	/**
	 * returns application for a given id
	 * @param anId
	 * @return
	 */
	AppDetail findById(final Long anId);
	
	/**
	 * returns application by application name
	 * @param anApplicationName
	 * @return
	 */
	AppDetail findByAppName(final String anApplicationName);
	
	/**
	 * returns all the registered applications
	 * @return
	 */
	List<AppDetail> findAllRegisteredApps();
	
	/**
	 * register a new application detail
	 * @param anAppDetail
	 */
	void register(final AppDetail anAppDetail);
}
